package com.treasure.mall.zbq.common.ienum.integral;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.treasure.mall.zbq.common.ienum.base.CodeDescCommonEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author allan
 * @version 1.0.0
 * @date 2020/8/24
 */
public interface IntegralEnums {
    /**
     * 积分日志类型
     */
    @AllArgsConstructor
    @Getter
    @JsonFormat(shape = JsonFormat.Shape.OBJECT)
    enum LogType implements CodeDescCommonEnum {
        MANUAL(0, "人工修改"),
        SIGN_IN(1, "签到获得"),
        WATCH_BROADCAST(2, "观看直播"),
        PUBLISH_ARTICLE(3, "发布社区文章"),
        ORDER(4, "下单赠送"),
        EXCHANGE(5, "兑换商品"),
        LOTTERY(6, "积分抽奖"),
        SUBSCRIBE(7, "关注公众号"),
        ;

        private Integer code;
        private String desc;
    }
}
